<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<%@ Import Namespace="Omu.AwesomeDemo.WebUI.Controllers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript">
        function sayHi() { alert('hi'); }
        function closeInfo() { $('#<%=Url.GetPopupId("info")%>').dialog('close'); }
    </script>
    <%=Html.MakePopup("Hey", width:300, height:200)%>
    <%=Html.MakePopup<PopupDemoController>(o => o.Info(), "info",
    new Dictionary<string, string>
                {
                    {"say hi","sayHi"}, 
                    {"say how are you", "function(){ alert('how are you'); }"},
                    {"Close it", "closeInfo"}
                }, position:"[30,130]")%>
    <%=Html.MakePopup("Info", height:200, prefix:"abc", position:"top")%>
    <%=Html.MakePopup("Info", prefix:"mod", modal:true, position:"right")%>
    <%=Html.MakePopup("eya", content:"<br/><br/><br/>this content is defined in the view,<br/><br/><br/> also fullScreen, try resizing your browser", fullScreen: true)%>
    <%=Html.PopupActionLink("Hey", htmlAttributes:new{@class="abtn"})%>&nbsp;
    <%=Html.PopupActionLink<PopupDemoController>(o => o.Info(), "info", new { @class = "abtn" })%>&nbsp;
    <%=Html.PopupActionLink("info","info 2", prefix:"abc", htmlAttributes:new{@class = "abtn"})%>&nbsp;
    <%=Html.PopupActionLink("info","modal info", prefix:"mod", htmlAttributes:new{@class = "abtn"})%>
    <%=Html.PopupActionLink("eya", htmlAttributes:new{@class="abtn"})%>
</asp:Content>
